package com.mysite.seckill.commons.vo;

import java.io.Serializable;

import com.mysite.seckill.commons.exception.BusinessError;

public class ResultVo implements Serializable {

    private static final long serialVersionUID = 1L;
    private Integer status = 0;
    private Object result;

    public ResultVo(Object result) {
        this.result = result;
    }

    public ResultVo(BusinessError error) {
        this.status = error.getErrorCode();
        this.result = error.getErrorMessage();
    }

    public Integer getStatus() {
        return status;
    }

    public Object getResult() {
        return result;
    }
}
